﻿@model IEnumerable<Poco.Restaurant>

@{
    ViewBag.Title = "Restaurants";
}

<h2>Restaurants</h2>

<p>
    @Html.ActionLink("Ajouter", "AjouterRestaurant")
</p>
<table>
    <tr>
        <th>
            Nom
        </th>
        <th>
            Adresse
        </th>
        <th>
            Capacite
        </th>
        <th>
            Telephone
        </th>
        <th>
            Email
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Nom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Adresse)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Capacite)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Telephone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.ActionLink("Editer", "EditerRestaurant", new { id=item.Id }) |
            @Html.ActionLink("Details", "Detail", new { id=item.Id }) |
            @Html.ActionLink("Suppression", "SupprimerRestaurant", new { id=item.Id })
        </td>
    </tr>
}

</table>
